import { createStore } from 'vuex'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'
// create Store:创建 商店   Mutation:突变 actions:行动 state:状态 Storage:存储 token:令 牌
const state={
  user:{
    isLogin:window.localStorage.getItem('token')?true :false
  },
  carCount:0

}
export default createStore({
  state,
  
  getters,
 
  mutations,
  
  actions
  

  
})
